<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<div class="menu">
<%-- 	<c:url value="/j_spring_security_logout" var="logoutUrl" />
	<form action="${logoutUrl}" method="post" id="logoutForm" style="visible:none;">
		<input type="hidden" name="${_csrf.parameterName}"
			value="${_csrf.token}" />
	</form> --%>
	
	
<div class="navbar navbar-default">
        
          <div class="navbar-header">
            <button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle collapsed" type="button" >
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>             
          </div><!--/.navbar-header-->
        	
           
          <div class="navbar-collapse collapse">

       
     
            <ul class="nav navbar-nav navbar-right ">

            <li><a style="color:#33657E"> <span><strong> <span class="glyphicon glyphicon-user"> </span> <spring:message code="label.welcome"/> <c:out value="${pageContext.request.userPrincipal.name}"> </c:out></strong></span></a></li>	
              <li><a href="changepassword"><span class="glyphicon glyphicon-cog"></span> <spring:message code="label.changepassword"/></a></li>
              <li><a href="#"><span class="glyphicon glyphicon-question-sign"></span> <spring:message code="label.help"/></a></li>
              
			<!-- <li><a href="javascript:formSubmit()"> Logout</a></li> -->
			<li><a href="<c:url value="/j_spring_security_logout"/>"><span class="glyphicon glyphicon-off"></span> <spring:message code="label.logout"/></a></li>
            </ul>
          </div><!--/.nav-collapse -->
        
        </div><!--/.navbar container-->
 </div><!--navbar default-->
 
 
 <script>


 $( "#lcVi" ).click(function() {
	 window.location =document.URL.split('?')[0]+"?locale=vi";
	 document.body.className = 'vi';
	 
	 });
 
 
 $( "#lcEn" ).click(function() {
	 window.location =document.URL.split('?')[0]+"?locale=en";
	 document.body.className = 'en';
	 });
 
 

 
 </script>
 
 
 
